<?php
namespace app\index\controller;


use think\Controller;
use think\Db;
use think\Loader;

Loader::addNamespace('data','data/');
/**
 *
 * User: GQI
 * Date: 2017/10/27
 * Time: 15:49
 */
class Base extends Controller
{
    public function __construct()
    {
        parent::__construct();
        /*栏目*/
        $cata = Db::name('cata')->select();
        $this->assign('cata',$cata);
        /*友情链接*/
        $link = Db::name('links')->select();
        $this->assign('link',$link);
        /*标签*/
        $tag = Db::name('tags')->group('tname')->select();
        $this->assign('tags',$tag);
    }
}